CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT(FKSCRIPT)
AUX_SOURCE_DIRECTORY(./src FKSCRIPT_SRC_LIST)
INCLUDE_DIRECTORIES(./include)
INCLUDE_DIRECTORIES(./src)
INCLUDE_DIRECTORIES(./src/package)
MESSAGE(STATUS "This is cmdcontroller BINARY dir " ${FKSCRIPT_BINARY_DIR})
MESSAGE(STATUS "This is cmdcontroller SOURCE dir " ${FKSCRIPT_SOURCE_DIR})
MESSAGE(STATUS "This is cmdcontroller SOURCE file " ${FKSCRIPT_SRC_LIST})
IF(REMOD)
SET(CMAKE_CXX_FLAGS "-O3 -Wall -Werror -gdwarf-2 -m64 -DNDEBUG")
MESSAGE("build release lib")
ELSE()
SET(CMAKE_CXX_FLAGS "-g3 -O0 -Wall -Werror -gdwarf-2 -m64 -D_DEBUG")
MESSAGE("build debug lib")
ENDIF()
SET(LIBRARY_OUTPUT_PATH ${FKSCRIPT_BINARY_DIR}/bin)
ADD_LIBRARY(fkscript STATIC ${FKSCRIPT_SRC_LIST})
